
public class GameManager {
	
	public static GameManager GM;
	
	//public GLWindow glWindow;
	public GLTestingDemo glWindow;
	public GraphicsEngine graphicsEngine;
	public StartGUI swingWindow;
	public EditorGUI editor;
	public OpenCoasterWindow openWindow;
	public SaveCoasterWindow saveWindow;
	
	//The data design and implementation in GM may change
	private Cart theCart;

	public static DatabaseConn database;
	
	public static String coasterName;
	public static String userName;
	
	public GameManager() {
		//GM = new GameManager();
		
		//glWindow = new GLWindow();
		database = new DatabaseConn();
		if (database == null) {
			System.out.println("you");
		}
		database.connectToDatabase();
		
		swingWindow = new StartGUI();
		swingWindow.setVisible(true);
		editor = new EditorGUI();
		editor.setVisible(false);
		openWindow = new OpenCoasterWindow();
		openWindow.setVisible(false);
		saveWindow = new SaveCoasterWindow();
		saveWindow.setVisible(false);
		
		//glWindow = new GLWindow();
		glWindow = new GLTestingDemo();
		graphicsEngine = new GraphicsEngine();
		
//		theCart = new Cart(new Point3D(1,1,1), 10, getCoaster());
	}	
	
	public static void main(String[] args) {
		GameManager.GM = new GameManager();
		
	}
}
